﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Diagnostics;

namespace devtm.Editor.Configuration.MyEditors
{


    public static class EditorKeys
    {

        private static ComponentResourceKey _FilePathPickerEditorKey =
            new ComponentResourceKey(typeof(EditorKeys), "FilePathPickerEditor");

        public static ComponentResourceKey FilePathPickerEditorKey
        {
            get { return _FilePathPickerEditorKey; }
        }


        private static ComponentResourceKey _ProtectPickerEditorKey =
            new ComponentResourceKey(typeof(EditorKeys), "ProtectPickerEditor");

        public static ComponentResourceKey ProtectPickerEditorKey
        {
            get { return _ProtectPickerEditorKey; }
        }

        public static IEnumerable<String> ListeProtect
        {
            get
            {
                List<string> l = new List<String> { "Unprotected" };
                System.Configuration.ProtectedConfigurationSection i = (System.Configuration.ProtectedConfigurationSection)Datas.Configuration.GetSection("configProtectedData");
                foreach (System.Configuration.ProviderSettings item in i.Providers)
                    l.Add(item.Name);

                return l;
            }
        }
    }


}
